﻿namespace IOP.OpenType.Tables
{
    /// <summary>
    /// 偏移表
    /// </summary>
    public class OffsetTable
    {
        /// <summary>
        /// 版本号
        /// </summary>
        public Fixed SfntVersion { get; set; }
        /// <summary>
        /// 表数量
        /// </summary>
        public ushort NumTables { get; set; }
        /// <summary>
        /// (Maximum power of 2 lessthan numTables) x 16.
        /// </summary>
        public ushort SearchRange { get; set; }
        /// <summary>
        /// Log2(maximum power of 2 lessthan numTables).
        /// </summary>
        public ushort EntrySelector { get; set; }
        /// <summary>
        /// NumTables x 16-searchRange.
        /// </summary>
        public ushort RangeShift { get; set; }
        /// <summary>
        /// 入口
        /// </summary>
        public TableEntry[] Entries { get; set; }
    }
}
